package com.zhangtai.modules.entity.employee;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-07-27 16:46:00
 */
@Data
@TableName("tb_employer_company")
public class EmployerCompanyEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 甲方id
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
				@ApiModelProperty(value="id",required = false)
				@NotNull(message = "id不能为空")
			private Long id;
			/**
		 * 甲方名称
		 */

			@ApiModelProperty(value="甲方单位名称",required = false)
			private String name;
			/**
		 * e签宝发起人、监印员id
		 */
			@ApiModelProperty(value="e签宝发起人、监印员id",required = true)
			@NotEmpty(message = "e签宝发起人、监印员idid不能为空")
			private String initiatorAccountId;
			/**
		 * 监印员名称
		 */
			@ApiModelProperty(value="监印员名称",required = true)
			@NotEmpty(message = "监印员名称")
			private String initiatorName;
			/**
		 * 内部企业id
		 */
			@ApiModelProperty(value="e签宝内部企业id",required = true)
			@NotEmpty(message = "e签宝内部企业id")
			private String authorizationOrganizeId;
			/**
		 * 印章id
		 */
			@ApiModelProperty(value="印章id",required = true)
			@NotEmpty(message = "印章id不能为空")
			private String sealId;
			/**
		 * 
		 */
			private Integer isDelete;

			@ApiModelProperty(value="法人代表",required = true)
			@NotEmpty(message = "法人代表")
			private String representative;
			@ApiModelProperty(value="登记地址",required = true)
			@NotEmpty(message = "登记地址")
			private String registeredAddress;
			@ApiModelProperty(value="公司性质",required = true)
			@NotEmpty(message = "公司性质")
			private String property;

	@ApiModelProperty(value="e签宝签署公司id",required = true)
	@NotEmpty(message = "e签宝签署公司id")
	@JsonProperty("eSignOrgId")
	private String eSignOrgId;
	
}
